Skip to content

Comments

Improve sim scalability#212

Open
WilliamTakeshi wants to merge 1 commit intoDotBots:mainfrom
WilliamTakeshi:improve-sim-scalability
Open

Improve sim scalability#212
WilliamTakeshi wants to merge 1 commit intoDotBots:mainfrom
WilliamTakeshi:improve-sim-scalability

Conversation

@WilliamTakeshi
Copy link
Contributor

Found the main problem on simulator frontend.

The problem was related to the filter callback. By default, the hook updates its internal state on every incoming message, which causes the component to re-render. Now its set to false to never update the FE, only when we want (with onWsMessage)

The simulator before worked fine with ~30 dotbots on my machine, but now seems fine with ~200. (only tested with changing colors).

I found a couple more improvements, will test and send improvements in small PRs.

recording.7.webm

@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.87%. Comparing base (545dfb1) to head (7fa7d1e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #212   +/-   ##
=======================================
  Coverage   81.87%   81.87%           
=======================================
  Files          30       30           
  Lines        2907     2907           
=======================================
  Hits         2380     2380           
  Misses        527      527           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@WilliamTakeshi WilliamTakeshi marked this pull request as draft February 24, 2026 17:15
@WilliamTakeshi WilliamTakeshi force-pushed the improve-sim-scalability branch from 322e5f7 to 7fa7d1e Compare February 24, 2026 17:17
@WilliamTakeshi WilliamTakeshi marked this pull request as ready for review February 24, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant